package com.competitions.videoedithelper.controller;

import com.competitions.videoedithelper.entity.ResponseModel;
import com.competitions.videoedithelper.service.impl.AudioSegServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author 盛旭雯
 */
@CrossOrigin
@RestController
@RequestMapping(value = "/audioSeg")
public class AudioSegController {
    private AudioSegServiceImpl audioSegServiceImpl;

    @Autowired
    public AudioSegController(AudioSegServiceImpl audioSegServiceImpl) {
        this.audioSegServiceImpl = audioSegServiceImpl;
    }

    @RequestMapping(value = "/segment",method = RequestMethod.GET)
    public ResponseModel selectAudioSeg(@RequestParam("id") String id) {
        return audioSegServiceImpl.selectAudioSeg(id);
    }
}
